home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / gtkmm-2.4 / proc / m4 / convert_gdk.m4 < prev    next >
Text File  |  2006-04-20  |  14KB  |  259 lines

  1. include(convert_glib.m4)
  2.  
  3. _EQUAL(gint8[],gint8*)
  4. _EQUAL(guchar,guint8)
  5. _EQUAL(guchar*,guint8*)
  6. _EQUAL(gfloat,float)
  7.  
  8. # Enums
  9. _CONV_ENUM(Gdk,AxisUse)
  10. _CONV_ENUM(Gdk,ByteOrder)
  11. _CONV_ENUM(Gdk,CapStyle)
  12. _CONV_ENUM(Gdk,Colorspace)
  13. _CONV_ENUM(Gdk,CursorType)
  14. _CONV_ENUM(Gdk,DragAction)
  15. _CONV_ENUM(Gdk,DragProtocol)
  16. _CONV_ENUM(Gdk,EventMask)
  17. _CONV_ENUM(Gdk,EventType)
  18. _CONV_ENUM(Gdk,ExtensionMode)
  19. _CONV_ENUM(Gdk,Fill)
  20. _CONV_ENUM(Gdk,FillRule)
  21. _CONV_ENUM(Gdk,Function)
  22. _CONV_ENUM(Gdk,GCValuesMask)
  23. _CONV_ENUM(Gdk,Gravity)
  24. _CONV_ENUM(Gdk,ImageType)
  25. _CONV_ENUM(Gdk,InputCondition)
  26. _CONV_ENUM(Gdk,InputMode)
  27. _CONV_ENUM(Gdk,InputSource)
  28. _CONV_ENUM(Gdk,InterpType)
  29. _CONV_ENUM(Gdk,JoinStyle)
  30. _CONV_ENUM(Gdk,LineStyle)
  31. _CONV_ENUM(Gdk,ModifierType)
  32. _CONV_ENUM(Gdk,OverlapType)
  33. _CONV_ENUM(Gdk,PixbufAlphaMode)
  34. _CONV_ENUM(Gdk,RgbDither)
  35. _CONV_ENUM(Gdk,Status)
  36. _CONV_ENUM(Gdk,SubwindowMode)
  37. _CONV_ENUM(Gdk,VisualType)
  38. _CONV_ENUM(Gdk,WindowAttributesType)
  39. _CONV_ENUM(Gdk,WindowEdge)
  40. _CONV_ENUM(Gdk,WindowHints)
  41. _CONV_ENUM(Gdk,WindowState)
  42. _CONV_ENUM(Gdk,WindowType)
  43. _CONV_ENUM(Gdk,WindowTypeHint)
  44. _CONV_ENUM(Gdk,WMDecoration)
  45. _CONV_ENUM(Gdk,WMFunction)
  46. _CONV_ENUM(Gdk,GrabStatus)
  47. _CONV_ENUM(Gdk,PixbufRotation)
  48.  
  49.  
  50. _CONVERSION(`Gdk::EventMask',`gint',`$3')
  51. _CONVERSION(`gint',`Gdk::EventMask',`static_cast<Gdk::EventMask>($3)')
  52. _CONVERSION(`ModifierType&',`GdkModifierType*',`(($2) &($3))')
  53. _CONVERSION(`WMDecoration&',`GdkWMDecoration*',`(($2) &($3))')
  54. _CONVERSION(`GdkDragProtocol&',`GdkDragProtocol*',`&($3)')
  55.  
  56. _CONVERSION(`GdkRectangle&',`GdkRectangle*',`&$3',`*$3')
  57. _CONVERSION(`GdkRgbCmap&',`GdkRgbCmap*',`&$3',`*$3')
  58.  
  59.  
  60. _CONVERSION(`GdkKeymap*',`const GdkKeymap*',`$3')
  61.  
  62.  
  63.  
  64.  
  65. # for GtkStyle public struct members
  66. _CONVERSION(`Gdk::Color',`GdkColor', `(*($3).gobj())')
  67. _CONVERSION(`GdkColor',`Gdk::Color', `Gdk::Color(const_cast<GdkColor*>(&($3)), true)')
  68.  
  69. # Ref (gdkmm) -> Ptr (gtk+)
  70. _CONVERSION(`Color&',`GdkColor*',($3).gobj())
  71. _CONVERSION(`const Gdk::Color&',`const GdkColor*',`($3).gobj()')
  72. _CONVERSION(`const Color&',`const GdkColor*',`($3).gobj()')
  73. _CONVERSION(`Rectangle&',`GdkRectangle*',($3).gobj())
  74. _CONVERSION(`Gdk::Rectangle&',`GdkRectangle*',($3).gobj())
  75. _CONVERSION(`Font&',`GdkFont*',($3).gobj())
  76. #_CONVERSION(`Region&',`GdkRegion*',($3).gobj())
  77. _CONVERSION(`const Region&',`GdkRegion*',const_cast<$2>(($3).gobj()))
  78. _CONVERSION(`const Gdk::Region&',`GdkRegion*',const_cast<$2>(($3).gobj()))
  79.  
  80. _CONVERSION(`const Glib::RefPtr<Gdk::Colormap>&',`GdkColormap*',__CONVERT_REFPTR_TO_P)
  81. _CONVERSION(`const Glib::RefPtr<Gdk::Pixmap>&',`GdkPixmap*',__CONVERT_REFPTR_TO_P)
  82. _CONVERSION(`const Glib::RefPtr<Gdk::Window>&',`GdkWindow*',__CONVERT_REFPTR_TO_P)
  83. _CONVERSION(`const Glib::RefPtr<Window>&',`GdkWindow*',__CONVERT_REFPTR_TO_P)
  84. _CONVERSION(`const Glib::RefPtr<Pixmap>&',`GdkPixmap*',__CONVERT_REFPTR_TO_P)
  85. _CONVERSION(`const Glib::RefPtr<Gdk::Pixmap>&',`GdkPixmap*',__CONVERT_REFPTR_TO_P)
  86. _CONVERSION(`const Glib::RefPtr<Bitmap>&',`GdkBitmap*',__CONVERT_REFPTR_TO_P)
  87. _CONVERSION(`const Glib::RefPtr<Gdk::Bitmap>&',`GdkBitmap*',__CONVERT_REFPTR_TO_P)
  88. _CONVERSION(`const Glib::RefPtr<Colormap>&',`GdkColormap*',__CONVERT_REFPTR_TO_P)
  89. _CONVERSION(`const Glib::RefPtr<const Colormap>&',`GdkColormap*',__CONVERT_CONST_REFPTR_TO_P_SUN(Colormap))
  90. _CONVERSION(`const Glib::RefPtr<GC>&',`GdkGC*',`Glib::unwrap<Gdk::GC>($3)')
  91. _CONVERSION(`const Glib::RefPtr<const GC>&',`GdkGC*',__CONVERT_CONST_REFPTR_TO_P_SUN(GC))
  92. _CONVERSION(`const Glib::RefPtr<Gdk::GC>&',`GdkGC*',__CONVERT_REFPTR_TO_P)
  93. _CONVERSION(`const Glib::RefPtr<Drawable>&',`GdkDrawable*',__CONVERT_REFPTR_TO_P)
  94. _CONVERSION(`const Glib::RefPtr<Gdk::Drawable>&',`GdkDrawable*',__CONVERT_REFPTR_TO_P)
  95. _CONVERSION(`const Glib::RefPtr<const Drawable>&',`GdkDrawable*',__CONVERT_CONST_REFPTR_TO_P_SUN(Drawable))
  96. _CONVERSION(`const Glib::RefPtr<Image>&',`GdkImage*',__CONVERT_REFPTR_TO_P)
  97. _CONVERSION(`const Glib::RefPtr<const Image>&',`GdkImage*',__CONVERT_CONST_REFPTR_TO_P_SUN(Image))
  98. _CONVERSION(`const Glib::RefPtr<Gdk::Image>&',`GdkImage*',__CONVERT_REFPTR_TO_P)
  99. _CONVERSION(`const Glib::RefPtr<Pixbuf>&',`GdkPixbuf*',__CONVERT_REFPTR_TO_P)
  100. _CONVERSION(`const Glib::RefPtr<const Pixbuf>&',`GdkPixbuf*',__CONVERT_CONST_REFPTR_TO_P_SUN(Pixbuf))
  101. _CONVERSION(`const Glib::RefPtr<Gdk::Pixbuf>&',`GdkPixbuf*',__CONVERT_REFPTR_TO_P)
  102. _CONVERSION(`Glib::RefPtr<Gdk::Pixbuf>',`GdkPixbuf*',__CONVERT_REFPTR_TO_P)
  103. _CONVERSION(`const Glib::RefPtr<Gdk::PixbufAnimation>&',`GdkPixbufAnimation*',__CONVERT_REFPTR_TO_P)
  104. _CONVERSION(`const Glib::RefPtr<Gdk::PixbufAnimationIter>&',`GdkPixbufAnimationIter*',__CONVERT_REFPTR_TO_P)
  105. _CONVERSION(`const Glib::RefPtr<Gdk::DragContext>&',`GdkDragContext*',__CONVERT_REFPTR_TO_P)
  106. _CONVERSION(`const Glib::RefPtr<Display>&',`GdkDisplay*',__CONVERT_REFPTR_TO_P)
  107. _CONVERSION(`const Glib::RefPtr<Screen>&',`GdkScreen*',__CONVERT_REFPTR_TO_P)
  108. _CONVERSION(`const Glib::RefPtr<Gdk::Display>&',`GdkDisplay*',__CONVERT_REFPTR_TO_P)
  109. _CONVERSION(`const Glib::RefPtr<Gdk::Screen>&',`GdkScreen*',__CONVERT_REFPTR_TO_P)
  110. _CONVERSION(`const Glib::RefPtr<Gdk::Device>&',`GdkDevice*',__CONVERT_REFPTR_TO_P)
  111. _CONVERSION(`const Glib::RefPtr<const Gdk::Screen>&',`GdkScreen*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::Screen))
  112.  
  113. define(`__CFR2P',`const_cast<$`'2>($`'3.gobj())')
  114. _CONVERSION(const Font&,GdkFont*,__CFR2P)
  115. _CONVERSION(const Gdk::Color&,GdkColor*,__CFR2P)
  116. _CONVERSION(const Color&,GdkColor*,__CFR2P)
  117. _CONVERSION(const Gdk::Rectangle&,GdkRectangle*,__CFR2P)
  118. _CONVERSION(const Rectangle&,GdkRectangle*,__CFR2P)
  119. _CONVERSION(const Gdk::Geometry&,GdkGeometry*,const_cast<$2>(&($3)))
  120. _CONVERSION(const Geometry&,GdkGeometry*,const_cast<$2>(&($3)))
  121. _CONVERSION(const RgbCmap&,GdkRgbCmap*,__CFR2P)
  122.  
  123. _CONVERSION(`Gdk::Rectangle*',`GdkRectangle*',`Glib::unwrap($3)')
  124. _CONVERSION(`const Gdk::Rectangle*',`GdkRectangle*',`Glib::unwrap(const_cast<Gdk::Rectangle*>($3))')
  125. _CONVERSION(`GdkRectangle*',`Gdk::Rectangle*',`&Glib::wrap($3)')
  126. _CONVERSION(`GdkRectangle*',`const Gdk::Rectangle*',`&Glib::wrap($3)')
  127. _CONVERSION(`GdkRectangle*',`const Gdk::Rectangle&',`Glib::wrap($3)')
  128.  
  129.  
  130. dnl TODO: Should this always be a copy?
  131. _CONVERSION(const Cursor&,GdkCursor*,($3).gobj_copy())
  132.  
  133. # Special treatment for the Sun Forte compiler
  134. #_CONVERSION(const Glib::RefPtr<const Gdk::Pixmap>&,GdkPixmap*,__CONVERT_CONST_REFPTR_TO_P)
  135. #_CONVERSION(const Glib::RefPtr<const Gdk::Window>&,GdkWindow*,__CONVERT_CONST_REFPTR_TO_P)
  136. #_CONVERSION(const Glib::RefPtr<const Gdk::Colormap>&,GdkColormap*,__CONVERT_CONST_REFPTR_TO_P)
  137. #_CONVERSION(const Glib::RefPtr<const Gdk::Visual>&,GdkVisual*,__CONVERT_CONST_REFPTR_TO_P)
  138. #_CONVERSION(const Glib::RefPtr<const Gdk::Bitmap>&,GdkBitmap*,__CONVERT_CONST_REFPTR_TO_P)
  139. #_CONVERSION(const Glib::RefPtr<const Gdk::Image>&,GdkImage*,__CONVERT_CONST_REFPTR_TO_P)
  140. #_CONVERSION(const Glib::RefPtr<const Gdk::GC>&,GdkGC*,__CONVERT_CONST_REFPTR_TO_P)
  141.  
  142. _CONVERSION(`const Glib::RefPtr<const Gdk::Pixmap>&', `GdkPixmap*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::Pixmap))
  143. _CONVERSION(`const Glib::RefPtr<const Gdk::Window>&', `GdkWindow*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::Window))
  144. _CONVERSION(`const Glib::RefPtr<const Window>&', `GdkWindow*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::Window))
  145. _CONVERSION(`const Glib::RefPtr<const Gdk::Colormap>&', `GdkColormap*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::Colormap))
  146. _CONVERSION(`const Glib::RefPtr<const Gdk::Visual>&', `GdkVisual*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::Visual))
  147. _CONVERSION(`const Glib::RefPtr<const Gdk::Bitmap>&', `GdkBitmap*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::Bitmap))
  148. _CONVERSION(`const Glib::RefPtr<const Gdk::Image>&', `GdkImage*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::Image))
  149. _CONVERSION(`const Glib::RefPtr<const Image>&', `GdkImage*',__CONVERT_CONST_REFPTR_TO_P_SUN(Image))
  150. _CONVERSION(`const Glib::RefPtr<const Gdk::GC>&', `GdkGC*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::GC))
  151. _CONVERSION(`const Glib::RefPtr<const GC>&', `GdkGC*',__CONVERT_CONST_REFPTR_TO_P_SUN(GC))
  152. #_CONVERSION(`const Glib::RefPtr<const Gdk::Drawable>&', `GdkDrawable*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gdk::Drawable))
  153. #_CONVERSION(`const Glib::RefPtr<const Drawable>&', `GdkDrawable*',__CONVERT_CONST_REFPTR_TO_P_SUN(Drawable))
  154. #_CONVERSION(`const Glib::RefPtr<const Display>&', `GdkDrawable*',__CONVERT_CONST_REFPTR_TO_P_SUN(Drawable))
  155.  
  156.  
  157. _CONVERSION(`GdkWindow*',`Glib::RefPtr<Window>', `Glib::wrap((GdkWindowObject*)($3))')
  158. _CONVERSION(`GdkWindow*',`Glib::RefPtr<const Window>', `Glib::wrap((GdkWindowObject*)($3))')
  159. _CONVERSION(`GdkWindow*',`Glib::RefPtr<Gdk::Window>', `Glib::wrap((GdkWindowObject*)($3))')
  160. _CONVERSION(`GdkWindow*',`Glib::RefPtr<const Gdk::Window>', `Glib::wrap((GdkWindowObject*)($3))')
  161. _CONVERSION(`GdkWindow*',`const Glib::RefPtr<Gdk::Window>&', `Glib::wrap((GdkWindowObject*)($3), true)')
  162. #_CONVERSION(`GdkDrawable*',`const Glib::RefPtr<Gdk::Drawable>&', `Glib::wrap($3)')
  163. _CONVERSION(`GdkPixmap*',`Glib::RefPtr<Pixmap>', `Glib::wrap((GdkPixmapObject*)($3))')
  164. _CONVERSION(`GdkPixmap*',`Glib::RefPtr<const Pixmap>', `Glib::wrap((GdkPixmapObject*)($3))')
  165. _CONVERSION(`GdkPixmap*',`Glib::RefPtr<const Gdk::Pixmap>', `Glib::wrap((GdkPixmapObject*)($3))')
  166. _CONVERSION(`GdkPixmap*',`Glib::RefPtr<Gdk::Pixmap>', `Glib::wrap((GdkPixmapObject*)($3))')
  167. _CONVERSION(`GdkColormap*',`Glib::RefPtr<Colormap>', `Glib::wrap($3)')
  168. _CONVERSION(`GdkColormap*',`Glib::RefPtr<const Colormap>', `Glib::wrap($3)')
  169. _CONVERSION(`GdkColormap*',`Glib::RefPtr<Gdk::Colormap>', `Glib::wrap($3)')
  170. _CONVERSION(`GdkVisual*',`Glib::RefPtr<Gdk::Visual>', `Glib::wrap($3)')
  171. _CONVERSION(`GdkVisual*',`Glib::RefPtr<Visual>', `Glib::wrap($3)')
  172. _CONVERSION(`GdkVisual*',`Glib::RefPtr<const Visual>', `Glib::wrap($3)')
  173. _CONVERSION(`GdkImage*',`Glib::RefPtr<Image>', `Glib::wrap($3)')
  174. _CONVERSION(`GdkPixbuf*',`Glib::RefPtr<Pixbuf>', `Glib::wrap($3)')
  175. _CONVERSION(`GdkPixbuf*',`Glib::RefPtr<Gdk::Pixbuf>', `Glib::wrap($3)')
  176. _CONVERSION(`GdkPixbuf*',`Glib::RefPtr<const Gdk::Pixbuf>', `Glib::wrap($3)')
  177. _CONVERSION(`GdkPixbufAnimationIter*',`Glib::RefPtr<PixbufAnimationIter>', `Glib::wrap($3)')
  178. _CONVERSION(`GdkPixbuf*',`Glib::RefPtr<Gdk::Pixbuf>', Glib::wrap($3))
  179. _CONVERSION(`GdkPixbufAnimation*',`Glib::RefPtr<Gdk::PixbufAnimation>', `Glib::wrap($3)')
  180. _CONVERSION(`GdkPixbufAnimation*',`Glib::RefPtr<const Gdk::PixbufAnimation>', `Glib::wrap($3)')
  181. _CONVERSION(`GdkGC*',`Glib::RefPtr<Gdk::GC>', `Glib::wrap($3)')
  182. _CONVERSION(`GdkGC*',`Glib::RefPtr<const Gdk::GC>', `Glib::wrap($3)')
  183.  
  184. _CONVERSION(`GdkDisplay*',`Glib::RefPtr<Display>', `Glib::wrap($3)')
  185. _CONVERSION(`GdkDisplay*',`Glib::RefPtr<const Display>', `Glib::wrap($3)')
  186. _CONVERSION(`GdkDisplay*',`Glib::RefPtr<Gdk::Display>', `Glib::wrap($3)')
  187. _CONVERSION(`GdkDisplay*',`Glib::RefPtr<const Gdk::Display>', `Glib::wrap($3)')
  188.  
  189. _CONVERSION(`GdkDisplayManager*',`Glib::RefPtr<DisplayManager>', `Glib::wrap($3)')
  190. _CONVERSION(`GdkDisplayManager*',`Glib::RefPtr<const DisplayManager>', `Glib::wrap($3)')
  191.  
  192. _CONVERSION(`GdkScreen*',`Glib::RefPtr<Screen>', `Glib::wrap($3)')
  193. _CONVERSION(`GdkScreen*',`Glib::RefPtr<const Screen>', `Glib::wrap($3)')
  194. _CONVERSION(`GdkScreen*',`Glib::RefPtr<Gdk::Screen>', `Glib::wrap($3)')
  195. _CONVERSION(`GdkScreen*',`Glib::RefPtr<const Gdk::Screen>', `Glib::wrap($3)')
  196.  
  197. _CONVERSION(`GdkDevice*',`Glib::RefPtr<Device>', `Glib::wrap($3)')
  198. _CONVERSION(`GdkDevice*',`Glib::RefPtr<Gdk::Device>', `Glib::wrap($3)')
  199. _CONVERSION(`GdkDevice*',`Glib::RefPtr<const Device>', `Glib::wrap($3)')
  200. _CONVERSION(`GdkDevice*',`Glib::RefPtr<const Gdk::Device>', `Glib::wrap($3)')
  201.  
  202. _CONVERSION(`gpointer',`const void*', `($2)($3)')
  203.  
  204.  
  205. # Glib::ListHandle<> (gdkmm) -> GList (gdk)
  206. _CONVERSION(`const Glib::ListHandle< Glib::RefPtr<Gdk::Pixbuf> >&',`GList*',`$3.data()')
  207. _CONVERSION(`const Glib::ListHandle< Glib::RefPtr<const Gdk::Pixbuf> >&',`GList*',`$3.data()')
  208.  
  209. # GList (gdk) -> Glib::ListHandle<> (gdkmm)
  210. _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<Gdk::Pixbuf> >',`$2($3, Glib::OWNERSHIP_SHALLOW)')
  211. _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<const Gdk::Pixbuf> >',`$2($3, Glib::OWNERSHIP_SHALLOW)')
  212. _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<Device> >',`$2($3, Glib::OWNERSHIP_NONE)')
  213. _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<const Device> >',`$2($3, Glib::OWNERSHIP_NONE)')
  214. _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<Visual> >',`$2($3, Glib::OWNERSHIP_SHALLOW)')
  215. _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<const Visual> >',`$2($3, Glib::OWNERSHIP_SHALLOW)')
  216. _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<Window> >',`$2($3, Glib::OWNERSHIP_SHALLOW)')
  217. _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<const Window> >',`$2($3, Glib::OWNERSHIP_SHALLOW)')
  218. _CONVERSION(`GSList*',`Glib::SListHandle< Glib::RefPtr<Display> >',`$2($3, Glib::OWNERSHIP_SHALLOW)')
  219. _CONVERSION(`GSList*',`Glib::SListHandle< Glib::RefPtr<const Display> >',`$2($3, Glib::OWNERSHIP_SHALLOW)')
  220. _CONVERSION(`gchar**',`Glib::StringArrayHandle',`$2($3)')
  221.  
  222.  
  223.  
  224.  
  225. # XPM data
  226. _CONVERSION(`const char*const*',`const char**',`const_cast<const char**>($3)',`$3')
  227.  
  228.  
  229. _CONVERSION(GdkFont*, Gdk::Font, `Gdk::Font($3)')
  230. _CONVERSION(GdkEvent*, Event, `Event($3)')
  231. _CONVERSION(GdkRegion*, Region, `Region($3)')
  232. _CONVERSION(GdkRegion*, Gdk::Region, `Gdk::Region($3)')
  233.  
  234. _CONVERSION(`GdkTimeCoord**&',`GdkTimeCoord***',`&($3)')
  235.  
  236. dnl _CONVERSION(GdkPixmap*,Gdk::Pixmap&,`Glib::unwrap_boxed($3)',`$3')
  237. dnl _CONVERSION(GdkBitmap*,Gdk::Bitmap&,`Glib::unwrap_boxed($3)',`$3')
  238.  
  239. dnl Atom -> string and vice versa
  240. _CONVERSION(`GdkAtom',`Glib::ustring',`Gdk::AtomString::to_cpp_type($3)')
  241. _CONVERSION(`const Glib::ustring&', `GdkAtom', `Gdk::AtomString::to_c_type($3)')
  242. _CONVERSION(`Glib::ustring&',`GdkAtom',`Gdk::AtomString::to_c_type($3)')
  243.  
  244. dnl NativeWindow
  245. _CONVERSION(`GdkNativeWindow',`Gdk::NativeWindow',`($2)($3)')
  246. _CONVERSION(`GdkNativeWindow',`NativeWindow',`($2)($3)')
  247. _CONVERSION(`Gdk::NativeWindow',`GdkNativeWindow',`($2)($3)')
  248. _CONVERSION(`NativeWindow',`GdkNativeWindow',`($2)($3)')
  249. _CONVERSION(`GdkEvent*',`const GdkEvent*',`($2)($3)')
  250.  
  251. # Used by signals:
  252. # TODO: Have some kind of _CONVERSION_ONLY_FOR_SIGNALS().
  253. _CONVERSION(`GdkDragContext*',`const Glib::RefPtr<Gdk::DragContext>&',Glib::wrap($3, true))
  254. _CONVERSION(`GdkPixbuf*',`const Glib::RefPtr<Gdk::Pixbuf>&', Glib::wrap($3, true))
  255. _CONVERSION(`GdkDragContext*',`Glib::RefPtr<Gdk::DragContext>',Glib::wrap($3, true))
  256. _CONVERSION(`GdkDisplay*',`const Glib::RefPtr<Display>&', Glib::wrap($3, true))
  257. _CONVERSION(`GdkDevice*',`const Glib::RefPtr<Gdk::Device>&', `Glib::wrap($3, true)')
  258.  
  259.